import { createApp } from "vue";
import App from "./App.vue";
import router from "@/router/index";
import store from "@/store/index";
import './styles/index.scss' // public style
import { publicComList } from '@/publicCom' // public component
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import ElementPlus from 'element-plus'
import './utils/changeSize'
const app = createApp(App);
for (const item of publicComList) {
	app.component(item.comName, item.com)
}

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
	app.component(key, component)
}

app
	.use(store)
	.use(router)
	.use(ElementPlus)
	.mount("#app");
